package my.spring.ioc.bean;

import java.util.List;

/**
 * 保存解析出的bean的信息的实体类
 * @author fengbo
 * @date 2018/3/28
 */
public class BeanDefinition {

    /** 是否被代理 */
    private boolean isProxy = false;
    /** 类的Class对象 */
    private Class clazz;
    /** 类的全路径 */
    private String className;
    /** Bean注解的value值 */
    private String name;

    public boolean isProxy() {
        return isProxy;
    }

    public void setProxy(boolean proxy) {
        isProxy = proxy;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "AopBeanDefinition{" +
                "isProxy=" + isProxy +
                ", clazz=" + clazz +
                ", className='" + className + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
